import {createRouter, createWebHashHistory} from "vue-router";

const routes = [
    {
        path: '',
        redirect: '/login'
    },
    {
        path: "/login",
        name: "Login",
        meta: {
            title: '登录'
        },
        component: () =>
            import ( /* webpackChunkName: "login" */ "../views/Login.vue")
    },
    {
        path: "/chat",
        name: "Chat",
        meta: {
            title: '聊天'
        },
        component: () =>
            import ( /* webpackChunkName: "login" */ "../views/ChatNew.vue")
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

router.beforeEach(() => {

})


export default router;